package a;

/**
 * @author futao
 * Created on 18-3-14-下午6:39.
 */
public class MyThread extends Thread {
    public MyThread() {
        System.out.println("my--begin");
        System.out.println("currentThread.getName:" + currentThread().getName());
        System.out.println("this.getName:" + this.getName());
        System.out.println("this.isAlive:" + this.isAlive());
        System.out.println("currentThread.isAlive:" + currentThread().isAlive());
        System.out.println("my---end");
    }

    @Override
    public void run() {
        System.out.println("run--begin");
        System.out.println("currentThread.getName:" + currentThread().getName());
        System.out.println("this.getName:" + this.getName());
        System.out.println("this.isAlive:" + this.isAlive());
        System.out.println("currentThread.isAlive:" + currentThread().isAlive());
        System.out.println("run---end");
    }
}
